#include <iostream>
#include <vector>
#include <list>
#include <iterator>
#include <algorithm>
#include <set>

using namespace std;



void test0(){
    int a = 10;
    int ret = [a](int value)mutable->int{
        a = 4;/* 这里是值传递，要修改原值要加引用*/
        cout << value << endl;
        return 8;
    }(123);

    cout << ret << endl;
    cout << a << endl;
}

int main() {
    test0();
    return 0;
}
